<?php
namespace app\index\model;

use think\model;

class Member extends Model{
    // 定义表名和主键
    protected $table = 'ecm_users';
    protected $pk = 'id';
    // 获取单个用户信息
    public static function getMemberInfoOne($filter){
        return self::where($filter)->find();
    }
    // 获取列表用户信息
    public static function getMemberInfo($filter){
        return self::where($filter)->select();
    }
}